package com.ggqq.dao;

import com.ggqq.entity.Picture;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 照片墙 dao层
 * */
@Mapper
@Repository
public interface PictureDao {

    //查询所有图片
    List<Picture> listPicture();

    //新增图片
    int savePicture(Picture picture);

    //根据id查一张图片
    Picture getPicture(Long id);

    //编辑修改相册
    int updatePicture(Picture picture);

    //删除图片
    void deletePicture(Long id);
}
